/**
 * @author CT
 * @email 994599447@qq.com
 * @date 2017.8.14
 */
import React from 'react';
import { StackNavigator } from 'react-navigation'; 
import { Image } from 'react-native';   

import InitPage from '../pages/InitPage'
import WelcomePage from '../pages/WelcomePage';
import HomePage from '../containers/HomeContainer';
import AboutPage from '../pages/AboutPage';
import SettingsPage from '../containers/SettingsContainer';
import AddRemindPage from '../containers/AddRemindContainer';
import EditRemindPage from '../containers/EditRemindContainer';

/**
 * navigation路由导航
 * 
 * #### 使用说明(react-navigation) ####
 * 页面跳转： this.props.navigation.navigate('ScreenName');
 * 返回上一页(pop)：this.props.navigation. goBack();
 * 取参数：this.props.navigation.state.params.xxx
 * 
 */
export default AppNavigator = StackNavigator({
    InitPage: {
        screen: InitPage
    },
    WelcomePage: { 
        screen: WelcomePage
    },
    HomePage: {
        screen: HomePage
    },
    SettingsPage: {
        screen: SettingsPage
    },
    AddRemindPage: {
        screen: AddRemindPage
    },
    EditRemindPage: {
        screen: EditRemindPage
    },
    AboutPage: {
        screen: AboutPage
    },
},{
    initialRouteName: 'InitPage', // 默认显示界面
    headerMode: 'none', // 导航栏的显示模式, screen: 有渐变透明效果, float: 无透明效果, none: 隐藏导航栏
    mode: 'card',   //页面跳转风格
});
